package com.yjc.drygoods.order.feign;

import com.yjc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yjc
 * @create 2022-10-17 11:28
 */
@FeignClient("drygoods-coupon")
public interface CouponFeignService {

    @GetMapping("/coupon/spubounds/get/all/spuCoupon")
    public R getAllSpuCoupon();

    @GetMapping("/coupon/couponhistory/get/coupon/byMmeberId")
    public R getCouponByMemberId(@RequestParam("memberId") Long memberId);
}
